<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="">
    <script type="text/javascript" src="vue/vue.min.js"></script>

</head>
<body>
<form action="" id="form">
    <!-- 使用v-model此时可以不使用name属性   -->
    <input type="radio" value="male" v-model="gender">男
    <input type="radio" value="female" v-model="gender">女
    <div>{{gender}}</div>
    <br>
    <input type="checkbox" v-model="hobby" value="eat">吃饭
    <input type="checkbox" v-model="hobby" value="sleep">睡觉
    <input type="checkbox" v-model="hobby" value="beatbean">打豆豆
    <div>{{hobby}}</div>
</form>
</body>
<script type="text/javascript">
    var vm = new Vue({
        el:"#form",
        data:{
            gender:"male",
            hobby:[]
        },
    })
</script>
</html>